import request from '@/utils/request'
/**
    * 获取用户列表数据
    */
export function getUserManageList (params) {
  return request({
    url: '/user-manage/list',
    params
  })
}

/**
    * 批量导入
    */
export function userBatchImport (data) {
  return request({
    url: '/user-manage/batch/import',
    method: 'POST',
    data
  })
}

/**
    * 删除指定数据
    */
export function deleteUser (id) {
  return request({
    url: `/user-manage/detele/${id}`,
    method: 'delete'
  })
}

/**
    * 获取所有用户列表数据
    */
export function getUserManageAllList () {
  return request({
    url: '/user-manage/all-list'
  })
}

/**
    * 获取用户详情
    */
export function userDetail (id) {
  return request({
    url: `/user-manage/detail/${id}`
  })
}

/**
    * 获取指定用户角色
    */
export function userRoles (id) {
  return request({
    url: `/user-manage/role/${id}`
  })
}
